package com.woniu.userservice.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author: 张腾飞  <br/>
 * Date: 2020/3/23:18:43  <br/>
 * Description: 跳转页
 */
@Controller
@RequestMapping("/index")
public class PageJumpController {

    @GetMapping("/index")
    public ModelAndView index(@RequestParam(value = "uid") Integer uid){
        ModelAndView mv = new ModelAndView("index");
        mv.addObject("uid",uid);
        return mv;
    }

    @GetMapping("/dizhi")
    public String dizhi(){
        return "/dizhi";
    }
}
